import { Entity,Column,PrimaryGeneratedColumn  } from 'typeorm';
@Entity('photo_table_name')
export class Photo {
    @PrimaryGeneratedColumn()
    id: number;
    @Column()
    name: string;
    @Column()
    description: string;
    @Column()
    filename: string;
    @Column()
    views: number;
    @Column()
    isPublished: boolean;
  }